asBoolean

abstract fun asBoolean(): Boolean

Returns the XPath result represented as a boolean.

Throws

if the result is not of a boolean type (see isBoolean)

when the document this instance belongs to is closed